{include file="pub/header" /}
<div class="login-box">
	 <?php switch ($code) {?>
        <?php case 1:?>
        	<div class="top">afs - <?php echo(strip_tags($msg));?></div>
			<div class="prompt iconfont">&#xe62b;</div>
        <?php break;?>
        <?php case 0:?>
        	<div class="top">afs - <?php echo(strip_tags($msg));?></div>
			<div class="prompt iconfont">&#xe630;</div>
        <?php break;?>
    <?php } ?>
	<div class="content">
		页面自动 <a id="href" href="<?php echo($url);?>">跳转</a> 等待时间： <b id="wait"><?php echo($wait);?></b>
	</div>
	<script type="text/javascript">
        (function(){
            var wait = document.getElementById('wait'),
                href = document.getElementById('href').href;
            var interval = setInterval(function(){
                var time = --wait.innerHTML;
                if(time <= 0) {
                    location.href = href;
                    clearInterval(interval);
                };
            }, 1000);
        })();
    </script>
</div>
{include file="pub/footer" /}

